<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
</head>
<body>
  <script src="../libs/jquery-1.12.4.js"></script>
  <script>
    $(function () {
      /* function sum (e) {
        console.log(e.data[0] + e.data[1])
      } */

      /* $(document).on('click', function () {
        sum(1,2)
      }) */
      /* 
        data位置我写什么，e.data就是什么
        e 就是事件函数中的第一个参数
      */
      function someFn (params) {
        params = params.data
        console.log(params)
      }
      
      // $(document).on('click', [4,2], sum)
      $(document).on('click', {a: 1, b: 2}, someFn)


    })  
  
  </script>
</body>
</html>